import { http } from '@/utils/http'
export type likeItem = {
  id: string
  avatar: string
  age: number
  height: number
  education: string
  gender: string
  nickname: string
  location: string
}

export type LikeItem = {
  result: likeItem[]
}

// 获取我喜欢列表
export const getMylikeItemApi = (userId: string) => {
  return http<LikeItem>({
    url: '/get/api/v1/develop/mylike',
    method: 'GET',
    data: {
      id: userId,
    },
  })
}

// 获取喜欢我列表
export const getLikeMyItemApi = (userId: string) => {
  return http<LikeItem>({
    url: '/get/api/v1/develop/likeme',
    method: 'GET',
    data: {
      id: userId,
    },
  })
}
